# -*- coding: utf-8 -*-
from common.config import *
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement( object ):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "幸孕星19母婴医疗险"
    # 拉取数据
    def pullData(self,data={}):
        for item in Helper.selectData( self.name,self.mysql):
            if item["plan"] == "萌妈版":
                money = "3000"
            elif item["plan"] == "辣妈版":
                money = "1w"
            else:
                money = "3w"

            data["name"] = self.name
            data["company"] = "平安保险"
            data["year"] = item["year"]
            data["birthSec"] = item["birthSec"]
            data["twins"] = item["twins"]
            data["money"] = money
            data["expire"] = item["expire"]
            data["payType"] = "年缴"
            data["price"] = item["price"]
            Helper.mergeTable(self.name, self.mysql, data)